<%--
  Created by IntelliJ IDEA.
  User: oldliu
  Date: 2021/1/25
  Time: 14:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>欢迎</title>
    <style type="text/css">
        main{
            display: flex;
            width: 100%;

        }
        main #menu dt,main #menu dd{
            width:120px;
        }
    </style>
</head>
<body>
<%--<%
    out.print(session.getId()+"<br/>");
    out.print(session.getLastAccessedTime()+"<br/>");
    out.print(session.getMaxInactiveInterval()+"<br/>");
    String name=(String)session.getAttribute("LOGIN_USER");
    if(name== null){
        out.print("<script>alert('您没有登录，无权访问');location.replace('index.jsp');</script>");
        return;
    }
%>
<h1>欢迎你，<%=name%>, <a href="logout.jsp">退出</a> </h1>--%>
<%@include file="checkLogin.jsp"%>
<main>
<dl id="menu" >
    <dt>学员管理</dt>
    <dd>
        <a href="students.jsp" target="mainFrame">学生信息jsp</a>
        <a href="student" target="mainFrame">学生信息servlet</a>
    </dd>
    <dd>
        <a href="addStudent.jsp" target="mainFrame">添加学生</a>
    </dd>
    <dt>课程</dt>
    <dd>
        <a href="subjects.jsp" target="mainFrame">课程信息</a>
    </dd>
</dl>
<div>
    <iframe src="" name="mainFrame" frameborder="0" style="border-left:1px solid gray" width="800px" height="500px"></iframe>
</div>
</main>

<jsp:include page="copyright.jsp"/>
</body>
</html>
